﻿using System;
using Fuse8.DomainFramework.Practices.SystemFacade;
using NUnit.Framework;

namespace UnitTests
{
	[TestFixture]
	public class ConverterTests
	{
		[Test]
		public void TimeSpanTest ()
		{
			var timeSpan = Converter.ChangeType("17:30:00", typeof(TimeSpan));
			Assert.That(timeSpan, Is.EqualTo(new TimeSpan(17, 30, 0)));
		}

		[Test]
		public void NullConversionTest ()
		{
			Assert.That(Converter.ChangeType(null, typeof (int)), Is.EqualTo(0));
		}
	}
}